<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="com.hrms.pojo.Train"
	import="java.util.List"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="css/style.css">
<title>查看培训信息</title>
<script type="text/javascript">
	function deleteConfirm() {

		return confirm("确认删除");
	}
</script>

</head>
<body background="<%=request.getContextPath()%>/images/background.jpg">
	<center>
		<jsp:include page="../top.jsp" flush="true"></jsp:include>
		<table width="800" height="48" border="0" cellpadding="0"
			cellspacing="0" background="<%=request.getContextPath()%>/images/center1.jpg">
			<tr>
				<td valign="top">
				<table width="494">
						<tr>
							<td width="45" height="25">&nbsp;</td>
							<td width="437" valign="bottom"><a href="<%=request.getContextPath()%>/train/trainLogin"><b>培训管理</b></a>&nbsp;&gt;
							 <font color="#FF0000"> 查询所有培训信息</font></td>
						</tr>
					</table>
					</td>
			</tr>
		</table>
		<table width="800"  height="340" border="0" align="center" cellpadding="0"
			cellspacing="0" background="<%=request.getContextPath()%>/images/center2.jpg">
			<tr>
			<td>
				<table width="700" border="1" align="center" cellpadding="0"
					cellspacing="0">
					<tr>
						<th class="style4" height="28"><div align="center">编号</div></th>
						<th class="style4"><div align="center">培训讲师</div></th>
						<th class="style4"><div align="center">培训主题</div></th>
						<th class="style4"><div align="center">培训地点</div></th>
						<th class="style4"><div align="center">参加培训</div></th>
						<th class="style4"><div align="center">备注</div></th>
						<th class="style4"><div align="center">操作</div></th>
					</tr>
					<%
				List<Train> returnSeleteAllTrain = (List<Train>) request.getAttribute("returnSeleteAllTrain");
				for (Train key : returnSeleteAllTrain) {
			%>
					<tr>
						<td><%=key.getTrainId()%></td>
						<td><%=key.getTrainMan()%></td>
						<td><%=key.getTrainTitle()%></td>
						<td><%=key.getTrainAddress()%></td>
						<td><%=key.getTrainJoin()%></td>
						<td><%=key.getTrainBz()%></td>
						<td><a
							href="<%=request.getContextPath()%>/train/selectByIdTrain/<%=key.getTrainId()%>">查询详细信息</a>
							<a
							href="<%=request.getContextPath()%>/train/deleteTrain/<%=key.getTrainId()%>"
							onclick="return deleteConfirm()">删除培训</a> <br></td>
					</tr>
					<%
				}
			%>
				</table>
				</td>
			</tr>
		</table>

		<jsp:include page="../down.jsp" flush="true" />
	</center>
</body>
</html>